import type { LoginResult } from "@/types/member"
import { postAction } from "@/utils/http"
type data = {
        code: string,
        encryptedData: string,
        iv: string
}
// 此登录方式需要企业appid
export const postLoginApi = (data: data)=>{
        return postAction<LoginResult>({
                url: '/login/wxMin',
                data
        })
}

//此方式不需要企业appid
export const postLoginFakeApi = (phoneNumber: string)=>{
        return postAction<LoginResult>({
                url: '/login/wxMin/simple',
                data: {
                        phoneNumber
                }
        })
}